<template>
  <view class="order-details2">
    <view class="common-panel">
      <tui-list-view>
        <tui-list-cell :lineLeft="false" :border="false" @click="detail">
          <view class="tui-item-box">
            <view class="tui-msg-box">
              <view class="tui-msg-item">
                <view class="tui-msg-name">订单状态</view>
              </view>
            </view>
            <view class="tui-msg-right">
              <view class="tui-msg-time status-1">已完成</view>
            </view>
          </view>
        </tui-list-cell>
        
        <tui-list-cell :lineLeft="false" :border="false" @click="detail">
          <view class="tui-item-box">
            <view class="tui-msg-box">
              <view class="tui-msg-item">
                <view class="tui-msg-name">商品1</view>
              </view>
              <view class="tui-unit">
                x1
              </view>
            </view>
            <view class="tui-msg-right">
              <view class="tui-msg-time">12</view>
            </view>
          </view>
        </tui-list-cell>
        <tui-list-cell :lineLeft="false" :border="false" @click="detail">
          <view class="tui-item-box">
            <view class="tui-msg-box">
              <view class="tui-msg-item">
                <view class="tui-msg-name">共计</view>
              </view>
              <view class="tui-unit">
                1件
              </view>
            </view>
            <view class="tui-msg-right">
              <view class="tui-msg-time">总价：12</view>
            </view>
          </view>
        </tui-list-cell>
        
      </tui-list-view>
    </view>
    
    
    <view class="common-panel">
      <tui-list-view>
        <tui-list-cell :lineLeft="false" :border="false" @click="detail">
          <view class="tui-item-box">
            <view class="tui-msg-box">
              <view class="tui-msg-item">
                <view class="tui-msg-name">订单状态</view>
              </view>
            </view>
            <view class="tui-msg-right">
              <view class="tui-msg-time status-1">已完成</view>
            </view>
          </view>
        </tui-list-cell>
        
        <tui-list-cell :lineLeft="false" :border="false" @click="detail">
          <view class="tui-item-box">
            <view class="tui-msg-box">
              <view class="tui-msg-item">
                <view class="tui-msg-name">商品1</view>
              </view>
              <view class="tui-unit">
                x1
              </view>
            </view>
            <view class="tui-msg-right">
              <view class="tui-msg-time">12</view>
            </view>
          </view>
        </tui-list-cell>
        <tui-list-cell :lineLeft="false" :border="false" @click="detail">
          <view class="tui-item-box">
            <view class="tui-msg-box">
              <view class="tui-msg-item">
                <view class="tui-msg-name">共计</view>
              </view>
              <view class="tui-unit">
                1件
              </view>
            </view>
            <view class="tui-msg-right">
              <view class="tui-msg-time">总价：12</view>
            </view>
          </view>
        </tui-list-cell>
        
      </tui-list-view>
    </view>
    
    
  </view>
</template>

<script>
  import tuiButton from "@/components/thorui/tui-button/tui-button"
  import tuiListView from "@/components/thorui/tui-list-view/tui-list-view";
  import tuiListCell from "@/components/thorui/tui-list-cell/tui-list-cell";
  export default {
    components: {
      tuiButton,
      tuiListView,
      tuiListCell
    }
  }
</script>

<style lang="less">
  .tui-item-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  
  .tui-list-cell_name {
    padding-left: 20rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .tui-ml-auto {
    margin-left: auto;
  }
  
  .tui-right {
    margin-left: auto;
    margin-right: 34rpx;
    font-size: 26rpx;
    color: #999;
  }
  
  .tui-logo {
    height: 52rpx;
    width: 52rpx;
    flex-shrink: 0;
  }
  
  .tui-flex {
    display: flex;
    align-items: center;
  }
  
  .tui-msg-box {
    display: flex;
    align-items: center;
    flex: 1;
    .tui-unit{
      align-items: center;
      flex-basis: 50px;
    }
  }
  
  .tui-msg-pic {
    width: 80rpx;
    height: 80rpx;
    border-radius: 12rpx;
    display: block;
    margin-right: 24rpx;
    flex-shrink: 0;
  }
  
  .tui-msg-item {
    max-width: 500rpx;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    align-items: center;
  }
  
  .tui-msg-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 34rpx;
    line-height: 1;
    color: #262b3a;
  }
  
  .tui-msg-content {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 26rpx;
    line-height: 1;
    color: #9397a4;
  }
  
  .tui-msg-right {
    max-width: 120rpx;
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  
  .tui-right-dot {
    height: 76rpx !important;
    padding-bottom: 10rpx !important;
  
  }
  
  .tui-msg-time {
    width: 100%;
    font-size: 24rpx;
    line-height: 24rpx;
    color: #9397a4;
  }
  .status-1{
    font-size: 30rpx;
    color: #FF4C3C;
  }
  .status-2{
    font-size: 30rpx;
    color: #2EBFAC;
  }
  .order-details2{
    padding: 30rpx;
    height: 100%;
    .common-panel{
      border-radius: 12rpx;
      background-color: #fff;
    }
  }
</style>
